import React from 'react';
import { Switch, Route } from 'react-router-dom';
import Foo from '../containers/Foo';
import Bar from '../containers/Bar';
import CounterPage from '../containers/CounterPage';

const Main = () => (
  <main>
    <Switch> 
      <Route path="/foo" component={Foo} />
      <Route path="/bar" component={Bar} />
      <Route path="/counter" component={CounterPage} />
    </Switch> 
  </main>
)

export default Main;
